function SendFix() {
    //正则验证表单
    var u_name = document.getElementById("u_name").value;
    if (u_name.length < 2) {
        alert("请输入正确的姓名！");
        return false;
    }
    var u_phone = document.getElementById("u_phone").value;
    var reg = /^1[3456789]\d{9}$/;
    if (!reg.test(u_phone)) {
        alert("请输入正确的手机号！");
        return false;
    }
    if (this.fullAddress.length <= 0) {
        alert("请输入详细地址！");
        return false;
    }
    if (this.fault_type == "") {
        alert("请选择故障类型！");
        return false;
    }
    var depicted = document.getElementById("depicted").value;
    if (depicted.length < 10) {
        alert("故障描述不能少于10个字！");
        return false;
    }

    //获取图片信息
    var file = document.getElementById("fault_img").files[0];
    if (file == undefined) {
        alert("请上传图片！");
        return false;
    }
    this.fault_img_name = file.name;
    this.fault_img_type = file.type;
    if(this.fault_img_type != "image/jpeg" && this.fault_img_type != "image/png"){
        alert("请上传jpg或png格式的图片！");
        return false;
    }
    this.fault_img_size = file.size;
    if (this.fault_img_size > 1024 * 1024 * 5) {
        alert("图片大小不能超过5MB！");
        return false;
    }
}